On-demand Evaluation by Program Transformation

نویسندگان

  • María Alpuente
  • Santiago Escobar
  • Salvador Lucas
چکیده

Strategy annotations are used in eager programming languages (e.g., OBJ2, OBJ3, CafeOBJ, and Maude) for improving efficiency and/or reducing the risk of nontermination. Syntactically, they are given either as lists of natural numbers or as lists of integers associated to function symbols whose (absolute) values refer to the arguments of the corresponding symbol. A positive index forces the evaluation of an argument whereas a negative index means " evaluation on-demand ". Recently, we have developed a formal description of the operational meaning of such on-demand strategy annotations which improves previous formalizations that were lacking satisfactory computational properties. In this paper, we introduce an automatic, semantics–preserving program transformation which produces a program (without negative annotations) which can be then correctly executed by typical OBJ interpreters. Moreover, to demonstrate the practicality of our ideas, the program transformation has been implemented and we compare the behavior of transformed programs with the original ones on a set of representative benchmarks.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Improving Lazy Non-Deterministic Computations by Demand Analysis

Functional logic languages combine lazy (demand-driven) evaluation strategies from functional programming with non-deterministic computations from logic programming. The lazy evaluation of non-deterministic subexpressions results in a demand-driven exploration of the search space: if the value of some subexpression is not required, the complete search space connected to it is not explored. On t...

متن کامل

Price Spikes Reduction with EDRP Program

With the development of deregulated power systems and increase of prices in some hours of day and increase fuel price, demand response programs were noticed more by customers. demand response consists of a series of activities that governments or utilities design to change the amount or time of electric energy consumption, to achieve better social welfare or some times for maximizing the benefi...

متن کامل

Power System Reliability Analysis with Emergency Demand Response Program

With the development of restructured power systems and increase of prices in some hours of day and increase fuel price, demand response programs were noticed more by customers. demand response consists of a series of activities that governments or utilities design to change the amount or time of electric energy consumption, to achieve better social welfare or some times for maximizing the benef...

متن کامل

Development and effectiveness of a comprehensive program for evaluating the performance of the educational system on the result of evaluation and educational accreditation of Shahid Beheshti hospital in Babol

ABSTRACT BACKGROUND AND OBJECTIVE: In order to evaluate the performance of teaching hospitals, the patterns of accreditation system as one of the most important packages of transformation and innovation plan in medical education, considered by the Ministry of Health. One of the serious challenges of the educational accreditation program is the use of a same standard set to evaluate the educatio...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Electr. Notes Theor. Comput. Sci.

دوره 86  شماره 

صفحات  -

تاریخ انتشار 2003